/*
 *  TCSS 343 - Winter 2012
 *  Homework 6b - Group 6
 *  
 *  PowerGrid class
 *  Author: Daniel Anderson, Tony Butterfield, and Alan Miles   
 */
package main;

import startercode.GraphInput;
import startercode.KeyboardReader;
import startercode.SimpleGraph;


/**
 * PowerGrid project Main class.
 * 
 * @author Daniel Anderson
 * @author Tony Butterfield
 * @author Alan Miles
 * @version 03/08/2012
 */
public class PowerGrid
{
  /**
   * main.
   * @param args - unused
   */
  public static void main(String[] args)
  {    
    System.out.println("TCSS343 - Spring 2012\nGroup 6 - Homework 6b\n");
    System.out.println("PowerGrid Optimization - Prim's Minimum Spanning Tree\n");
    System.out.print("Input grid path and filename: "); 
    
    SimpleGraph s_graph = new SimpleGraph();
    String gridfile = KeyboardReader.readString();      // get path and filename of test data
    
    GraphInput.LoadSimpleGraph(s_graph, gridfile);      // load graph
    
    PrimsGraph p_graph = new PrimsGraph(s_graph);       // generate Prim's MST graph
    
    p_graph.displayEdges();                             // output edges of MST
  }
  
}
